import request from '@/utils/request'

export function list(params) {
  return request({
    url: '/umsArticle/paginQuery',
    method: 'get',
    params: params
  })
}

export function add(data) {
  return request({
    url: '/umsArticle/add',
    method: 'post',
    data: data
  })
}

export function edit(data) {
  return request({
    url: '/umsArticle/edit',
    method: 'post',
    data: data
  })
}

export function detail(params) {
  return request({
    url: '/umsArticle/queryById',
    method: 'get',
    params: params
  })
}

export function del(params) {
  return request({
    url:'/umsArticle/deleteById',
    method:'get',
    params: params
  })
}
